package com.demo.designpattern.proxy;

/**
 * Created by hunter
 *
 * @Description 代练玩家
 */
public class LevelingPlayer implements Player {

    private Player normalPlayer;

    public LevelingPlayer(Player normalPlayer) {
        this.normalPlayer = normalPlayer;
    }

    @Override
    public void killMonster() {
        System.out.println("代练玩家在帮你 ---- begin");
        normalPlayer.killMonster();
        System.out.println("代练玩家在帮你 ---- end");
    }

    @Override
    public void upGrade() {
        System.out.println("代练玩家在帮你 ---- begin");
        normalPlayer.upGrade();
        System.out.println("代练玩家在帮你 ---- end");
    }
}
